#include "mainwindow.h"
#include "traymenu.h"
#include <QSystemTrayIcon>

#include <QApplication>

int main(int argc, char *argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

    QApplication a(argc, argv);

    TrayMenu *pTrayMenu = new TrayMenu;
    QSystemTrayIcon *pSysTrayIcon = new QSystemTrayIcon;
    pSysTrayIcon->setContextMenu(pTrayMenu);
    pSysTrayIcon->setToolTip("我就是托盘");
    pSysTrayIcon->setIcon(QIcon(":/icons/laotie.png"));
    pSysTrayIcon->show();
    return a.exec();
}
